package net.maku.events.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.experimental.Accessors;
import net.maku.framework.mybatis.entity.BaseEntity;

import java.util.List;

/**
 * 每个用户所答的每日答题
 *
 * @Author: qr
 * @Date: 2025/3/27 22:46
 * @Version 1.0
 */
@Data
@Accessors(chain = true)
@TableName(value = "user_everyday_contest_question", autoResultMap = true)
public class UserEverydayContestQuestionEntity extends BaseEntity {

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 健步走活动id
     */
    @TableField(value = "walk_activity_id")
    private Long walkActivityId;

    /**
     * 活动关联表id
     */
    @TableField(value = "walk_feature_id")
    private Long walkFeatureId;

    /**
     * 所答的题目的id
     */
    @TableField(value = "contest_question_ids", typeHandler = JacksonTypeHandler.class)
    private List<Long> contestQuestionIds;

}
